﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Ext.Net;

namespace FreedomERP.Comm
{
    public class DAOResult<T> where T : class
    {
        public DAOResult( Boolean result,String msg,List<T> resultSet) {
            this.result = result;
            this.msg = msg;
            this.resultSet = resultSet;
        }

        /// <summary>
        /// 操作的结果，true：成功；false：失败
        /// </summary>
        public Boolean result { get; set; }

        /// <summary>
        /// 成功或失败时返回的信息,例如当result==false时，可以返回失败的原因
        /// </summary>
        public String msg { get; set; }

        /// <summary>
        /// 数据操作时返回的结果集
        /// </summary>
        public List<T> resultSet { get; set; }
       
    }
}